package features;

import java.util.Comparator;

import model.Term;

public class TFComparator implements Comparator<Term> {

	@Override
	public int compare(Term o1, Term o2) {
		if(o1.getDocuments().size() > o2.getDocuments().size())
			return -1;
		if(o1.getDocuments().size() < o2.getDocuments().size())
			return 1;
		return 0;
	}

}
